---
title: Input
description: Displays an 8-bit input component.
---

import { Input } from "@/components/ui/8bit/input";
import CopyCommandButton from "@/components/copy-command-button";
import InstallationCommands from "@/components/installation-commands";
import ComponentPreview from "@/components/component-preview";

<div className="flex flex-col md:flex-row items-center justify-end gap-2 mb-2">
  <CopyCommandButton
    copyCommand="pnpm dlx shadcn@latest add @8bitcn/input"
    command="pnpm dlx shadcn@latest add @8bitcn/input"
  />
</div>

<ComponentPreview title="8-bit Input component" name="input">
  <Input placeholder="Enter text" className="max-w-md" />
</ComponentPreview>

## Installation

---

<InstallationCommands packageName="input" />

## Usage

---

```tsx
import { Input } from "@/components/ui/8bit/input"
```

```tsx
<Input placeholder="Enter text" />
```

